# @Author: Eric Ito
# @Date: 1/26/2009
# Project Euler problem 7

"""
Find 10001th prime number
"""

from util import isPrime

def main():
	prime = 0
	i = 2
	while 1:
		if isPrime(i):
			prime += 1
			if prime == 10001:
				print i
				return
		i += 1
				
		
	
if __name__ == '__main__':
	main()